package com.gxy.learn.design.model.create.builder.demo;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 建造者模式的 实体应用
 * 重构方便，开发效率高
 * @author: gaoxueyong
 * @Date: 2022/11/7 15:16
 */
@Slf4j
public class Client {
    public static void main(String[] args) {
        Phone phone = new Phone.Builder().cpu("intel").screen("三星").memory("金士顿").mainboard("华硕").builder();
        log.info("phone = {}", phone);
    }
}
